#@adminLayout()
#define main()
<div class="jbolt_page" data-key="#(pmkey)">
    <div class="jbolt_page_title">
        <div class="row">
            <div class="col-2">
                <h1>系统配置</h1>
                <span style="color:red;font-weight: bold;">[注意：非开发人员请勿操作本页面]</span>
                <span> #(pageData.totalRow?? 0) 条记录</span>
            </div>
            <div class="col-8" >
                <form class="form-inline"  id="retailerStaffForm" action="/auth/mall/sysconfig"  data-pjaxsubmit  method="get">

                    <input type="text" autocomplete="off"  class="form-control"  placeholder="输入关键字搜索" name="keywords" value="#(keywords??)" />
                    <button  type="submit" class="btn btn-light" ><i class="fa fa-search"></i> 查询</button>
                </form>
            </div>


        </div>

    </div>
    <div class="jbolt_page_content">
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped table-center">
                <thead>
                <tr>
                    <th style="width: 60px">序号</th><th style="width:200px">key</th>
                    <th style="width: 60px">是否启动</th>
                    <th style="width:120px;">备注</th>
                </tr>
                </thead>
                <tbody>
                #if(pageData)
                #for(data:pageData.list)
                <tr>
                    <td>#(for.index+1)</td>
                    <td>#(data.key??)</td>
                    <td>
                        #if(data.value == "off" || data.value == "on" )
                        <img src="#(data.value == on?'/assets/img/switch/default/on.png':'/assets/img/switch/default/off.png')" data-switchbtn data-confirm="是否切换 系统配置"   data-url="/auth/mall/sysconfig/toggle_off_on_sysconfig/#(data.id)"/>
                        #else
                        #(data.value??)
                        #end

                    </td>
                    <td>#(data.memo??)</td>

                </tr>
                #end
                #end
                </tbody>
            </table>
        </div>
        #include("/_view/_admin/common/_page.html",pageEleId="retailerOrderPage")
    </div>
</div>
#end
#define js()
<script>

    $(function(){
        initPage("retailerOrderPage",#(pageData.totalPage??),#(pageData.pageNumber??),"retailerOrderForm");
    });

    //测试可刷新 -- 提交表单
    function RefreshsubmitForm(formEId){
        var form=getRealJqueryObject(formEId);
        if(FormChecker.check(form)){
            var url=form.action;
            form.ajaxSubmit({
                type:"post",
                url:url,
                success:function(ret){
                    if(ret.state=="ok"){
                        LayerMsgBox.success(ret.msg,500,function(){
                            refreshPjaxContainer();
                        });
                    }else{
                        LayerMsgBox.alert(ret.msg,2);
                    }
                }
            });
        }
        return false;
    }



</script>
#end

